package cn.edu.zafu.bigdata.lyq;

public class TestMathOprerations {
    public static void main(String[] args) {
        MathOperations mos = new MathOperations();
        //两个整数之和
        int intsum = mos.add(5,7);
        System.out.println("两个整数之和为" + intsum);
        //两个浮点数之和
        double doublesum = mos.add(4.2,7.6);
        System.out.println("两个浮点数之和为" + doublesum);
        //三个整数之和
        int threesum = mos.add(4,7,8);
        System.out.println("三个整数之和为" + threesum);
    }
}
